Skip to content

Remove __fututure__ import for type hints#245

Merged
Serhiy1 merged 1 commit intomainfrom
dev/serhiy/typehint-cleanup
Jul 28, 2023
Merged

Remove __fututure__ import for type hints#245
Serhiy1 merged 1 commit intomainfrom
dev/serhiy/typehint-cleanup

Conversation

@Serhiy1
Copy link
Contributor

@Serhiy1 Serhiy1 commented Jul 28, 2023

  • Removed as the python committee decided that annotations is not the correct way to deal with cyclical imports

  • Convert necessary type hints to strings to deal with the removal of the import

 Mention [stepsize] in a comment if you'd like to report some technical debt. See examples here.

@Serhiy1 Serhiy1 requested a review from eccles July 28, 2023 12:22
@Serhiy1 Serhiy1 force-pushed the dev/serhiy/typehint-cleanup branch from 9294c66 to c9edd63 Compare July 28, 2023 12:34
- the python committee has decided that __annotations__ is not the correct way to deal with cyclical dependencies
@Serhiy1 Serhiy1 force-pushed the dev/serhiy/typehint-cleanup branch from c9edd63 to 8df083c Compare July 28, 2023 12:43
@Serhiy1 Serhiy1 merged commit 37c3704 into main Jul 28, 2023
@Serhiy1 Serhiy1 deleted the dev/serhiy/typehint-cleanup branch July 28, 2023 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants